package com.pojo;

import java.io.Serializable;
public class book implements Serializable {

    private String bookid;
    private String bookName;
    private double price;
    private int bookcount; //不作为书本的信息，仅用于存储购买的书本数

    public int getBookcount() {
        return bookcount;
    }

    public void setBookcount(int bookcount) {
        this.bookcount = bookcount;
    }

    public book() {

    }

    //存session
    public book(String bookid, String bookName, double price, int bookcount) {
        this.bookid = bookid;
        this.bookName = bookName;
        this.price = price;
        this.bookcount = bookcount;
    }

    public book(String bookid, String bookName, double price) {
        this.bookid = bookid;
        this.bookName = bookName;
        this.price = price;
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }


    @Override
    public String toString() {
        return "book{" +
                "bookid='" + bookid + '\'' +
                ", bookName='" + bookName + '\'' +
                ", price=" + price +
                ", bookcount=" + bookcount +
                '}';
    }
}
